CC = g++
CFLAGS = -Wall -g -pedantic
PROG = main.exe
LIBS   = -lglut -lGLU -lGL -lGLEW 
SRCS = main.cpp revSurf.o BSplineCuadCurve.o

all: $(PROG) ejecutar clean

revSurf.o: revSurf.cpp revSurf.h BSplineCuadCurve.h
	$(CC) $(CFLAGS) -c revSurf.cpp

BSplineCuadCurve.o: BSplineCuadCurve.cpp BSplineCuadCurve.h
	$(CC) $(CFLAGS) -c BSplineCuadCurve.cpp

ejecutar: $(PROG)
	./main.exe

$(PROG):$(SRCS)
	$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS)

clean:
	rm -f *.o
	rm -f $(PROG)
